/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Raytracing.BRDF;

import Raytracing.Ray;
import processing.core.PVector;

/**
 *
 * @author Matt
 */
public class NullBRDF implements BRDF{

    public PVector getReflectance(PVector incoming, PVector outgoing, PVector normal, float tu, float tv, PVector u, PVector v) {
        return new PVector(0, 0, 0);
    }

    public float sampleReflectance(PVector outgoing, Ray sample, PVector normal, PVector BRDF, float tu, float tv, PVector u, PVector v, float u1, float u2) {
        sample.direction = outgoing.get();
        sample.direction.mult(-1f);
        sample.bounceType = Ray.SPECULAR;
        BRDF.set(1,1,1);
        return 1f;
    }
    
}
